//
//  AppDelegate.swift
//  CKWeiBo
//
//  Created by 陈科 on 2017/1/4.
//  Copyright © 2017年 CK. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        
        //1.实例化window
        window = UIWindow(frame: UIScreen.main.bounds)
        window?.backgroundColor = #colorLiteral(red: 1, green: 1, blue: 1, alpha: 1)
        
        //2.设置根控制器
        let tabBar = CKTabBarViewController()
        window?.rootViewController = tabBar
        
        //3.设置window视图为主window,并且可视化
        window?.makeKeyAndVisible()
        return true
    }

    


}

